home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User: China
/
Acorn User China CD-ROM (UK) (Disc B)
/
Acorn User China CD-ROM (UK) (Disc B).bin
/
STUTTGART
/
PROBLEMS
/
ASM-C
/
C2ASM-EX
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1991-04-24
|
567 b
|
33 lines
c:
int NiceInt;
char BeautifulChar[20];
int main(void) {
.
.
DoSomething();
}
Assembler:
.PROC DoSomething
.IMPORT NiceInt
.IMPORT BeautifulChar
LDR R1,AdrsNiceInt
MOV R0,#0
STR R0,[R1] ; set NiceInt to 0
LDR R2,AdrsBeautiful
STRB R0,[R2] ; set BeautifulChar to ""
MOVS PC,R14
AdrsNiceInt .WORD NiceInt
AdrsBeautiful .WORD BeautilfulChar
.END